package com.hankol.newretail.adapter

import android.widget.ImageView
import com.baselibrary.extension.checkValue
import com.baselibrary.utils.GlideUtils
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.hankol.newretail.R
import com.hankol.newretail.bean.MallLabelBean

/*商品 标签*/
class GoodsLabelAdapter : BaseQuickAdapter<MallLabelBean, BaseViewHolder>(R.layout.item_goods_label) {

    override fun convert(helper: BaseViewHolder, item: MallLabelBean) {
        GlideUtils.loadImg_101(mContext, item.icon.checkValue(), helper.getView<ImageView>(R.id.img_label))
    }
}